<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>Metronic | Data Tables - Advanced Tables</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="<%=request.getContextPath()%>/style/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/css/main-back.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/style/css/style.css" rel="stylesheet" type="text/css"/>
<!-- END GLOBAL MANDATORY STYLES -->
<link href="<%=request.getContextPath()%>/style/css/glyphicons.css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/style/css/halflings.css" rel="stylesheet" />
<!-- END PAGE LEVEL STYLES -->
<link rel="shortcut icon" href="<%=request.getContextPath()%>/style/image/favicon.ico" />
<style type="text/css">
.profile-classic li span {
color: #666;
font-size: 13px;
margin-right: 7px;
border-top: solid 1px #f5f5f5;
line-height: 20px;
}
.profile-classic li:first-child {
border-top: none;
}
ul.unstyled, ol.unstyled {
list-style: none;
}

.td_userinfo{
height:30px;
width:10%;
text-align:center;
border-bottom:#f5f5f5 solid 1px;
height:50px;
}

.td_edit{
	height:30px;
	width:10%;
	text-align:right;
	border-bottom:#f5f5f5 solid 1px;
}

.td_uservalue{
height:30px;
text-align:left; 
border-bottom:#f5f5f5 solid 1px;
}

.td_userinfo span{
color:#666666;
}

a{
color:#999999;
}

a:link{
color:#999999;
}

a:hover{
color:#999999;
}


</style>
<script type="text/javascript">
      function del_click(){
         alert("确认删除所选中用户？");
     }
   
   </script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
	<script type="text/javascript">
		function checkPwd(){
			if(document.form1.userPwd.value != document.form1.userPwd2.value){
				alert("密码不一致");
				return false;
			}else {
				return true;
			}
		}
	</script>

<div class="main">
  <div>
    <ul class="breadcrumb">
      <li> <i class="icon-home"></i> 主页 <span class="icon-angle-right"></span> </li>
      <li> 用户管理 <span class="icon-angle-right"></span> </li>
      <li>编辑用户</li>
    </ul>
  </div>
</div>
<div class="portlet box blue">
  <div class="portlet-title">
    <div class="caption">User-Edit</div>
  </div>
  <div class="portlet-body">
  
    <div style="width:70%;margin:auto;height:auto;position:relative;padding-top:20px;">
    	<form name="form1" action="register!adminAlterUserInfo" method="post">
    	<input type="hidden" name="userName" value="${lookUser.userName }"/>
      <table width="100%" border="0">
	  
        <tr>
          <td class="td_userinfo"><span>用户名:</span></td>
          <td class="td_uservalue"><s:property value="lookUser.userName"/></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>真实姓名:</span></td>
          <td class="td_uservalue"><input type="text" name="userRealname"  value="${lookUser.userRealname}" class="span6 m-wrap" style="width:200px;"/></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>密码重置:</span></td>
          <td class="td_uservalue"><input type="password" name="userPwd"  class="span6 m-wrap" style="width:200px;"/></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>确认密码:</span></td>
          <td class="td_uservalue"><input type="password" name="userPwd2"  class="span6 m-wrap" style="width:200px;"/></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>E-mail:</span></td>
          <td class="td_uservalue"><input type="text" name="userEmail"  value="${lookUser.userEmail}" class="span6 m-wrap" style="width:200px;" required="required"/></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>性别:</span></td>
          <td class="td_uservalue"><s:select name="userSexy" list="{'男','女'}" theme="simple" value="%{lookUser.userSexy}" class="span6 m-wrap" style="width:213px;"></s:select></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>电话:</span></td>
          <td class="td_uservalue"><input type="text" name="userPhone"  value="${lookUser.userPhone}" class="span6 m-wrap" style="width:200px;"/></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>地址:</span></td>
          <td class="td_uservalue"><input type="text" name="userAddress"  value="${lookUser.userAddress}" class="span6 m-wrap" style="width:200px;"/></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>角色:</span></td>
          <td class="td_uservalue"><s:select name="userRoleType" list="{'管理员','普通用户'}" theme="simple" value="%{lookUser.userRoleType==0?'管理员':'普通用户'}" class="span6 m-wrap" style="width:213px;"></s:select></td>
        </tr>
        <tr>
          <td class="td_userinfo"><span>拍点:</span></td>
          <td class="td_uservalue"><input type="text" name="userPoint"  value="${lookUser.userPoint}" class="span6 m-wrap" style="width:200px;"/></td>
        </tr>
		 <tr>
          <td class="td_userinfo"style="text-align:center;"><button type="submit" class="btn purple" onclick="return checkPwd();">保存</button></td>
		  <td class="td_userinfo"style="text-align:center;">
		  	<a href='<s:url action="login!load"></s:url>'>
	  	 		<input type="button" class="btn purple"  value="返回">
			</a>
		  </td>
		 </tr>
      </table>
      </form>
    </div>
  </div>
</div>
</body>
</html>